<div id="content">
    <div class="container_medium">
<?php 
foreach($part_list->result() as $row)
{ 
    if ($this->session->userdata('validated') &&
        ($this->session->userdata('userid') == $row->dealer_id)) {
?>
        <div class="get_quote">
            <a id="rquest_extend" href="<?php echo base_url(); ?>index.php/part/extend/<?php echo $row->id; ?>">
                <img src="<?php echo base_url(); ?>system/public/img/calendar.png" alt="Extend" title="Request to extend part listing" />
            </a>
            <a id="rquest_delete" href="<?php echo base_url(); ?>index.php/part/delete/<?php echo $row->id; ?>">
                <img src="<?php echo base_url(); ?>system/public/img/delete.png" alt="Delete" title="Request to delete part" />
            </a>
        </div>
<?php
    }
?>
<h1 class="blue">
<?php
    echo $row->name;
?>
    <span class="car-detail">
<?php
        //echo $row->province;
?>
    </span>
</h1>
<div class="modelGroup">  
    <div  class= "modelItem">
        <div>
        <table cellspacing="0" cellpadding="0">
            <tbody>
                <tr>
                    <td valign="top">
                        <div class="data-point">      
                            <span class="label">Service:</span>
                            <span class="data">
<?php
                                //echo $service_list;
?>
                            </span>      
                        </div>
                        <div class="data-point">               
                            <span class="label">Company phone:</span>         
                            <span class="data">
<?php
                                //echo $row->company_number1 . ', ' . $row->company_number2;
?>
                            </span>      
                        </div>
                        <div class="data-point">               
                            <span class="label">Email:</span>         
                            <span class="data">
<?php
                                //echo $row->email;
?>
                            </span>      
                        </div>
                        <div class="data-point">      
                            <span class="label">Website:</span>
                            <span class="data">
<?php
                                //echo $row->website;
?>                                        
                            </span>      
                        </div>
                        <div class="data-point">               
                            <span class="label">Location:</span>         
                            <span class="data">
<?php
                                //echo $row->province . ' (' . $row->district . ')';
?>
                            </span>      
                        </div>
                    </td>
                    <td valign="top">
                        <div class="data-point">               
                            <span class="label">Address:</span>         
                            <span class="data">
<?php
                                //echo $row->address;
?>                                        
                            </span>      
                        </div>   
                        <div class="data-point">               
                            <span class="label">Contact:</span>         
                            <span class="data">
<?php
                                //echo $row->dealer_name;
?>
                            </span>      
                        </div>   
                        <div class="data-point">               
                            <span class="label">Phone:</span>         
                            <span class="data">
<?php
                                //echo $row->contact_number1 . ', ' . $row->contact_number2;
?>                                        
                            </span>      
                        </div>   
                        <div class="data-point">      
                            <span class="label">Position:</span>
                            <span class="data">
<?php
                                //echo $row->position;
?>
                            </span>      
                        </div>
                        <div class="data-point">               
                            <span class="label">Description:</span>         
                            <span class="data">
<?php
                                echo $row->description;
?>
                            </span>      
                        </div>   
                    </td>
                </tr>
            </tbody>
        </table>      
        </div>
    </div>
</div>
<!--
<div style="clear:both;">
    <br>
    <br>
</div>
<h1 class="blue">
    Dealer's car(s):
</h1>
<div class="modelGroup">     
<?php 
    //$this->load->view('templates/car_list'); 
?> 
</div>
-->
<?php
}
?>
    </div>
    <div class="quicklink">
<?php 
        $this->load->view('/templates/quicklinks');
?>                        
    </div>
</div>    
<div class="separator"></div>